﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Messaging;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SignalR_Persistent
{
    public partial class ToMsgQueue : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void _sendMessageButton_Click(object sender, EventArgs e)
        {
            string msgQueue = ConfigurationManager.AppSettings["BroadcastQueue"];
            MessageQueue queue = new MessageQueue(msgQueue);
            queue.Send(_message.Text);
        }
    }
}